'use strict';

const Controller = require('egg').Controller;

// const { execute } = require("../../scripts/helloworld")

class HomeController extends Controller {
  async index () {
    const { ctx } = this;
    // ctx.body = 'hi, egg';
    console.log(this.ctx.helper.getHelperData());
    // execute("helloworld", ctx.response)
    await ctx.render('index.html', {
      lists: ['a', 'b', 'c']
    });
  }
}

module.exports = HomeController;
